package com.lighting.module2;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {

    @RequestMapping("/hello")
    @ResponseBody
    String Hi(String name) {
        return "Hello, " + name +" !";
    }

    @RequestMapping("/bye")
    @ResponseBody
    String Bye() {
        return "Goodbye";
    }
}
